import Layout from '@/layout/index.vue'
export default [
  {
    path: '/manage-storage',
    component: Layout,
    redirect: 'noredirect',
    name: 'ManageStorage',
    meta: {
      title: '库内管理',
      icon: 'storege'
    },
    children: [
      {
        path: 'list',
        component: () =>
          import(
            /* webpackChunkName: "list" */ '@/module-storage/pages/list/index.vue'
          ),
        name: 'CheckList',
        meta: {
          title: '盘点单'
        }
      },
      {
        path: 'list/details/:id',
        component: () =>
          import(
            /* webpackChunkName: "list" */ '@/module-storage/pages/list-add/index.vue'
          ),
        name: 'CheckListAdd',
        meta: {
          title: '新增盘点单',
          activeMenu: '/manage-storage/list',
          hidden: true
        }
      },
      {
        path: 'list/list-detail/:id',
        component: () =>
          import(
            /* webpackChunkName: "list" */ '@/module-storage/pages/list-details/index.vue'
          ),
        name: 'CheckListDetail',
        meta: {
          title: '查看盘点详情',
          activeMenu: '/manage-storage/list',
          hidden: true
        }
      },
      {
        path: 'list-task',
        component: () =>
          import(
            /* webpackChunkName: "list-task" */ '@/module-storage/pages/list-task/index.vue'
          ),
        name: 'CheckTask',
        meta: {
          title: '盘点任务'
        }
      },
      {
        path: 'list-task/details/:id',
        component: () =>
          import(
            /* webpackChunkName: "list-task" */ '@/module-storage/pages/list-task-add/index.vue'
          ),
        name: 'CheckTaskAdd',
        meta: {
          title: '查看盘点',
          activeMenu: '/manage-storage/list-task',
          hidden: true
        }
      },
      {
        path: 'storage-lose-profit',
        component: () =>
          import(
            /* webpackChunkName: "storage-lose-profit" */ '@/module-storage/pages/storage-lose-profit/index.vue'
          ),
        name: 'ManageStorageStorageLoseProfit',
        meta: {
          title: '库存损益'
        }
      },
      {
        path: 'latest-storage',
        component: () =>
          import(
            /* webpackChunkName: "latest-storage" */ '@/module-storage/pages/latest-storage/index.vue'
          ),
        name: 'ManageStorageLatestStorage',
        meta: {
          title: '实时库存'
        }
      }
    ]
  }
]
